/* @(#)GSOrderSaveForm.java    
 *
 * Project: BUS
 *
 * Modify Information:
 * =============================================================================
 *   Author       Date       Description
 *   ------------ ---------- ---------------------------------------------------
 *   Simonyi Peng            新增
 *   Jenny   Li   2006-4-5   添加字段isTradeFlatProvider
 * Copyright Notice:
 * =============================================================================
 *    Copyright (c) 2001-2006 Beijing HiTRUST Technology Co., Ltd. 1808 Room, 
 *        Science & Technology Building, No. 9 South Street, Zhong Guan Cun, 
 *        Haidian District, Beijing ,100081, China All rights reserved.
 *
 *    This software is the confidential and proprietary information of
 *        Beijing HiTRUST Technology Co., Ltd. ("Confidential Information").
 *        You shall not disclose such Confidential Information and shall use it
 *        only in accordance with the terms of the license agreement you entered
 *        into with HiTRUST.
 *
 * Warning:
 * =============================================================================
 * 
 */
package com.hitrust.gs.vo;

import java.sql.ResultSet;
import java.sql.SQLException;
import com.hitrust.gs.service.GSBaseBean;

/**
 * @author simonyi
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class GSProviderSimpleWithManufVO implements GSBaseBean {
    
    public String manufactureId;
    public String concentricityId;
    public String providerId;
    public String providerShortName;
    public double unitPrice;
    public String balancemode;
    public String id;
    
    public Object process(ResultSet aResultSet) throws SQLException {
        GSProviderSimpleWithManufVO vo = new GSProviderSimpleWithManufVO ();
        vo.manufactureId = aResultSet.getString("APEP_CODE");
        vo.concentricityId = aResultSet.getString("CONCENTRICITY_CODE");
        vo.providerId = aResultSet.getString("CODE");
        vo.providerShortName = aResultSet.getString("NAME");
        
        String a1 = aResultSet.getString("IS_TRADEFLAT_PROVIDER");
        String a2 = aResultSet.getString("IS_TRADEFLAT_PRODUCT");
        if("0".equals(a1) && "0".equals(a2))
            vo.providerShortName = vo.providerShortName + "(采购网配送)";
        vo.unitPrice = aResultSet.getDouble("UNIT_PRICE");
        vo.balancemode=aResultSet.getString("BALANCE_MODE");
        vo.id=aResultSet.getString("ID");
        return vo;
    }

}
